#include <Arduino.h>

#ifndef CRSF_H
#define CRSF_H

  void INIT_CRSF(void);
  void CRSF_DECODE(uint8_t in);
  uint16_t CRSF_VAL(uint8_t channel);
  bool CRSF_UPDATED(void);
  uint8_t CRSF_CRC_RX(uint8_t in, bool rset, bool out);
  uint8_t CRSF_CRC_TX(uint8_t in, bool rset, bool out);
  void CRSF_BATT_TELE(uint16_t vol, uint16_t curr, uint32_t cap, uint8_t remain);

#endif
